package com.rightsidetech.user.service;

import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.user.dtos.requst.IdReq;
import com.rightsidetech.user.dtos.requst.UserAddAddressReq;
import com.rightsidetech.user.dtos.requst.UserUpdateAddressReq;
import com.rightsidetech.user.dtos.response.UserAddressResp;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Package: com.rightsidetech.system.service
 * @ClassName: UserAddressService
 * @Author: yinj
 * @CreateTime: 2021/10/25 14:07
 */
public interface UserAddressService {
    ResponseData save(UserAddAddressReq req, Long userInfoId);

    ResponseData update(UserUpdateAddressReq req, Long userInfoId);

    ResponseData<List<UserAddressResp>> list(Long userInfoId);

    ResponseData del(IdReq req, Long userInfoId);

    ResponseData updateIsDefault(Long userInfoId, IdReq req);
}
